<h1>New <%= h @thought.readable_type %></h1>

<% form_for(@thought) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :summary, "Abstract or Title" %><br />
    <%= f.text_field :summary %>
  </p>
  <p>
  <%= f.label :body, "Text for #{@thought.readable_type}" %><br />
    <%= f.text_area :body %>
  </p>
  <% if @thought.parent_id %>
    <%= f.hidden_field :parent_id %>
  <% end %>
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

<%= link_to 'Back', thoughts_path %>
